package final_;

/**
 * @author wly
 * @create 2022-12-04 21:13
 */
public class Final01 {
    public static void main(String[] args) {
        A a = new A();
        a.f();
        B b = new B();
        b.f();
    }
}

class A{
    public final void f(){
        System.out.println("hello final");
    }
}

class B extends A {
//        public void f(){
//
//        }
}